package com.ruoyi.fetvApi.controller;

import java.util.List;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.fetvApi.domain.FetvImageApi;
import com.ruoyi.fetvApi.service.IFrontFetvImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * 图片Controller
 *
 * @author lwj
 * @date 2023-03-03
 */
@RestController
@RequestMapping("/index/fetv/image")
@CrossOrigin
public class FetvImageApiController extends BaseController
{
    @Autowired
    private IFrontFetvImageService frontFetvImageService;

    /**
     * 查询图片列表
     */
    @GetMapping("/list")
    @Anonymous
    public TableDataInfo list(FetvImageApi fetvImageApi)
    {
        startPage();
        List<FetvImageApi> list = frontFetvImageService.selectFrontFetvImageList(fetvImageApi);
        return getDataTable(list);
    }
}
